﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 掌控校园.ViewModels
{
    public class BackgroundImageList
    {

        public BackgroundImageList()
        {
            ImageList = new ObservableCollection<BackgroundImage>();
        }
        public ObservableCollection<BackgroundImage> ImageList { get; set; }


        public void LoadData()
        {
            string[] filesPath = new[] { "1.jpg", "2.jpg", "3.jpg", "4.jpg", "5.jpg" ,"6.jpg"};

            foreach (string file in filesPath)
            {
                BackgroundImage img = new BackgroundImage();
                img.FilePath = "BackgroundImage/" + file;
                ImageList.Add(img);
            }
        }

    }
}
